package com.wuyan.locationdog.view

import android.content.Context
import android.view.Gravity
import android.view.animation.Animation
import com.wuyan.locationdog.R
import razerdp.basepopup.BasePopupWindow
import razerdp.util.animation.AnimationHelper
import razerdp.util.animation.TranslationConfig


class FenceAddPopup(context: Context?) : BasePopupWindow(context) {



    init {
        contentView = createPopupById(R.layout.pop_add_fence)
        popupGravity = Gravity.BOTTOM
    }

    override fun onCreateShowAnimation(): Animation? {
        return AnimationHelper.asAnimation()
            .withTranslation(TranslationConfig.FROM_BOTTOM)
            .toShow()
    }

}
